//
//  WYHomeController.m
//  WYNews
//
//  Created by 曾佳豪 on 2017/3/18.
//  Copyright © 2017年 haodada.com. All rights reserved.
//

#import "WYHomeController.h"
#import "WYChannelView.h"
#import <Masonry.h>
@interface WYHomeController (){
    //全局的频道视图
    WYChannelView *channelView;
    
}

@end

@implementation WYHomeController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets =NO;
    [self addChannelView];


}
//添加频道视图
-(void)addChannelView{
    
    channelView =[[WYChannelView alloc]init];
    self.view.backgroundColor =[UIColor greenColor];
    [self.view addSubview:channelView];
    
    [channelView mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(44);
        make.top.equalTo(self.mas_topLayoutGuide);
    
    }];
    
    
    
    
    
    
}



@end
